﻿using AutoMapper;
using PlusAssistance.AutoMapper;
using PlusAssistance.DAL.Concrete;
using PlusAssistance.IoC;

namespace PlusAssistance
{
    public class Bootstrapper
    {
        public static void Bootstrap()
        {
            NHibernateConfig.Setup();
            IoCManager.Initialize();
            IoCManager.SetupSession(NHibernateConfig.SessionFactory);

            SetAutoMapper();
        }

        private static void SetAutoMapper()
        {
            Mapper.AddProfile<BusinessLogicProfile>();
        }
    }
}